#ifndef LOGIN_DIALOG_H
#define LOGIN_DIALOG_H

#include <QDialog>
#include <QSqlDatabase>

namespace Ui {
class LoginDialog;
}

class LoginDialog : public QDialog {
    Q_OBJECT

public:
    explicit LoginDialog(QWidget *parent = nullptr);
    ~LoginDialog();

private slots:
    void onLoginButtonClicked();
    void onCancelButtonClicked();

private:
    Ui::LoginDialog *ui;
    bool authenticateUser(const QString &username, const QString &password);
};

#endif // LOGIN_DIALOG_H